package com.geline.mybatisplus.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 一对多关联
 *
 * @author mengxin
 * @date 2025/4/14
 */
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface One2Many {

    //表名
    String table();

    //外键，如：dept_id
    String foreignKey();

    //Class<?> entityClass();
}
